from django.apps import AppConfig
import os

# Register your models here.
default_app_config = 'user.IndexConfig'


# 获取当前 APP 的命名
def get_current_app_name(_file):
    return os.path.split(os.path.dirname(_file))[-1]


class IndexConfig(AppConfig):
    name = get_current_app_name(__file__)
    verbose_name = "UserManage"
